package com.example.rjb_shoping.controller;

import com.example.rjb_shoping.entity.RjbOrderStatus;
import com.example.rjb_shoping.service.RjbOrderStatusService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (RjbOrderStatus)表控制层
 *
 * @author makejava
 * @since 2021-06-09 20:43:11
 */
@RestController
@RequestMapping("rjbOrderStatus")
public class RjbOrderStatusController {
    /**
     * 服务对象
     */
    @Resource
    private RjbOrderStatusService rjbOrderStatusService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public RjbOrderStatus selectOne(Integer id) {
        return this.rjbOrderStatusService.queryById(id);
    }

}
